package org.mybatis.plus.annos;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.mybatis.plus.boot.MapperScannerRegistrar;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@EnableAspectJAutoProxy
@Import({MapperScannerRegistrar.class}) // 重点在这里，注入了MapperScannerRegistrar类
public @interface MapperScan {
	/**
	 * 缺省属性（==basePackages），basePackages的别名
	 */
	String[] value() default {};

}